package itheima.a03polymorphismdemo3;

public class Cat extends Animal {

    public Cat() {
    }

    public Cat(int age, String color) {
        super(age, color);
    }
    public void catchMouse(){
        System.out.println("猫在逮老鼠");
    }
//3岁的灰颜色的猫眯着眼睛侧着头吃鱼
    @Override
    public void eat(String something) {
        System.out.println(getAge() + "岁的" + getColor() + "颜色的猫眯着眼睛侧着头" + something );
    }

}
